package com.example.siyun.service.impl.coperateserviceimpl;

import com.example.siyun.mapper.courseoperatelogmapper.CourseOperateLogMapper;
import com.example.siyun.pojo.CourseOperateLog;
import com.example.siyun.service.courseoperatelogservice.CourseOperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
/**
 * @Auther: 全
 * @Date: 2022/9/26 09:33
 * @Description:课程操作日志
 */
@Service
public class CourseOperateLogServiceImpl implements CourseOperateLogService {
    @Autowired
    private CourseOperateLogMapper courseOperateLogMapper;
    /**
     * 获取教师模块课程操作日志
     * @ruturn 返回获取教师模块课程操作日志
     */
    @Transactional
    @Override
    public List<CourseOperateLog> findCourseOperate(CourseOperateLog courseoperatelog,int isdel) {
        return courseOperateLogMapper.findCourseOperate(courseoperatelog,isdel);
    }
    /**
     * 根据id删除对应的课程操作日志
     * @param  id 要删除课程操作日志的id
     */
    @Transactional
    @Override
    public void delCourseOperateLog(int id,int isdel) {
        courseOperateLogMapper.delCourseOperateLog(id,isdel);
    }
    /**
     * 添加课程操作日志
     * @param  courseoperatelog 要添加的日志数据
     */
    @Transactional
    @Override
    public void addCourseOperateLog(CourseOperateLog courseoperatelog) {
        courseOperateLogMapper.addCourseOperateLog(courseoperatelog);
    }
}
